package com.lineage.server.serverpackets;

import com.lineage.data.event.ShopXSet;

public class S_CnsSell extends ServerBasePacket {
  private byte[] _byte;
  
  public S_CnsSell(int objectId, String htmlid, String command) {
    this._byte = null;
    buildPacket(objectId, htmlid, command);
  }
  
  private void buildPacket(int objectId, String htmlid, String command) {
    writeC(136);
    writeD(objectId);
    writeD(0);
    writeD(ShopXSet.MIN);
    writeD(ShopXSet.MIN);
    writeD(ShopXSet.MAX);
    writeH(0);
    writeS(htmlid);
    writeS(command);
  }
  
  public byte[] getContent() {
    if (this._byte == null)
      this._byte = getBytes(); 
    return this._byte;
  }
  
  public String getType() {
    return getClass().getSimpleName();
  }
}
